package com.example.demo.service.imp;


import com.example.demo.entity.User;
import com.example.demo.mapper.UserAuthorityMapper;
import com.example.demo.service.UserAuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserAuthorityServiceImpl implements UserAuthorityService {

    @Autowired
    UserAuthorityMapper userAuthorityMapper;

    @Override
    public int insertUserAuthorityByUser(User user) {
        return userAuthorityMapper.insertUserAuthorityByUser(user);
    }
}
